package jieke;

public class guanli extends people{
    private double yuexin;  // 月薪
    private double jiangjin;

    public guanli(int number, String name, double yuexin, double jiangjin) {
       /*** this.number = number;
        this.name = name;***/
        super(number, name);
        this.yuexin = yuexin;
        this.jiangjin = jiangjin;
    }

    public double jisuan() {
        return yuexin + jiangjin;
    }

    public String gongzitiao() {
        return "工资条\n" +
                "工号：" + number + "\n" +
                "姓名：" + name + "\n" +
                "员工类型：管理人员\n" +
                "月薪：" + yuexin + "\n" +
                "奖金：" + jiangjin + "\n" +
                "总薪资：" + jisuan();
    }
    public double getYuexin() {
        return yuexin;
    }

    public double getJiangjin() {
        return jiangjin;
    }


}
